﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSmanagement.IBaseService.Transfer.DTO
{
    public class ShowTransferDTO
    {
        public int Id { get; set; }
        /// <summary>
        /// 移库单号
        /// </summary>
        [MaxLength(40)]
        public string TransferCode { get; set; }
        /// <summary>
        /// 移库单类型
        /// </summary>
        [MaxLength(10)]

        public string TransferType { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        [MaxLength(10)]

        public string Maker { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime MakeTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(100)]

        public string Remark { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        [StringLength(40)]
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [StringLength(40)]
        public string ProductName { get; set; }

        /// <summary>
        /// 产品规格
        /// </summary>
        [StringLength(30)]
        public string ProductSpecification { get; set; }

        /// <summary>
        /// 类别
        /// </summary>
        [StringLength(10)]
        public string Category { get; set; }

        /// <summary>
        /// 存储单位
        /// </summary>
        [StringLength(10)]
        public string StorageUnit { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [StringLength(10)]
        public string Unit { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public double UnitPrice { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? Quantity { get; set; }
    }
    public class RequsetTransfer
    {
        /// <summary>
        /// 移库单号
        /// </summary>
        [MaxLength(40)]
        public string? TransferCode { get; set; }
        /// <summary>
        /// 移库单类型
        /// </summary>
        [MaxLength(10)]

        public string? TransferType { get; set; }
        public int pageindex { get; set; } = 1;
        public int pagesize { get; set; } = 10;
    }
    public class GetTransfer
    {
        public List<ShowTransferDTO> list { get; set; }
        public int listcount { get; set; }
        public int code { get; set; } = 0;
    }

}
